POV-Ray : Newsgroups : povray.general : Passing file handles to macros - how? : Re: Passing file handles to macros - how? Server Time
4 Aug 2024 20:18:45 EDT (-0400)
  Re: Passing file handles to macros - how?  
From: Thorsten Froehlich
Date: 24 Apr 2003 11:01:58
Message: <3ea7fc66$1@news.povray.org>
In article <cja### [at] netplexaussieorg> , 
Christopher James Huff <cja### [at] earthlinknet>  wrote:

> What do you need the STL for? Reference counting is trivial to
> implement.

Yes, reinvent the wheel.  And then try to add it in a clean manner in
POV-Ray.  The problem of not being able to use "real" classes as members of
most data structures makes it a real hassle.  It is about getting a clean
well-working implementation.  It isn't about "Reference counting is trivial
to implement." at all.

> I'm not sure what use it would be for this though...if a file
> is closed inside a macro, it will still be invalid, even if there are
> still references to it. And how could it be destroyed while in use by a
> macro?

It could be closed, couldn't it?  So what happens if you close it inside the
macro and the try to use it after the macro returns?  You run into tons of
problems due to the current structure of the code, and you should have an
idea how many there are given that you have had a look at the source code
before...

    Thorsten

____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.